package com.stedu.service;

import com.stedu.bean.Department;
import com.stedu.exception.SteduException;

import java.util.List;

public interface DepartmentService {
    //添加
    boolean insert(Department d) throws SteduException;
    //删除
    boolean delete(Integer did) throws SteduException;
    //修改
    boolean update(Department d) throws SteduException;
    //根据id查询
    Department selectByDid(Integer did);
    //查询所有
    List<Department> selectAll();
}
